import request from '@/utils/request'
import qs from 'qs'


export function pageCredit(current,limit) {
  return request({
    url: `/manager/pageCredit/${current}/${limit}`,
    method: 'get'
  })
}

export function getCreditMessageById(id) {
  return request({
    url:  `/manager/getCreditMessageById/${id}`,
    method: 'get'
  })
}

export function deleteCreditMessage(id) {
  return request({
    url:  `/manager/deleteCreditMessage/${id}`,
    method: 'delete'
  })
}

export function addOrDecr(data) {
  return request({
    url:  `/manager/addOrDecr/${data.id}`,
    method: 'post',
    data:qs.stringify(data)
  })
}

